import React, { Component } from 'react'
import { NavBar, Icon } from 'antd-mobile';
import { hashHistory } from 'react-router'
import KLogo from '../KLogo'
import '../../assets/css/detail/k-nav-bar.less'

export default class KNavBar extends Component {
    render() {
        return (
            <div className="k-nav-bar">
                <NavBar
                    mode="light"
                    icon={<Icon type="left" />}
                    onLeftClick={() => hashHistory.goBack()}
                >
                    <KLogo />
                </NavBar>
            </div>
        )
    }
}
